package com.zhang.authoritycenter.common.model.dao.authority;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author KingHood
 * @since 2023-12-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("authority_menu_api_relate")
public class AuthorityMenuApiRelateDO extends Model<AuthorityMenuApiRelateDO> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    /**
     * 菜单id
     */
    @TableField("menu_id")
    private Long menuId;

    /**
     * api
     */
    @TableField("api_id")
    private Long apiId;

    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    /**
     * 创建人人id
     */
    @TableField("create_user_id")
    private Long createUserId;

    /**
     * 最后修改人id
     */
    @TableField("update_user_id")
    private Long updateUserId;

    /**
     * 是否删除：0未删除；1已删除
     */
    @TableField("is_delete")
    private Integer isDelete;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
